package person.bing.fbcloud.util;

import org.apache.commons.lang.StringUtils;
import org.apache.commons.lang.WordUtils;

/**
 * @author: mengfanbing
 * @date: 2020/3/18 15:41
 */
public class velocityUtil {
    public static void main(String[] args) {
        String health_task = WordUtils.capitalizeFully("health_task", new char[]{'_'}).replace("_","");
        String uncapitalize = StringUtils.uncapitalize("healthTask");
        System.out.println(health_task);
        System.out.println(uncapitalize);


        /*VelocityEngine ve = new VelocityEngine();
        ve.setProperty(RuntimeConstants.RESOURCE_LOADER, "classpath");
        ve.setProperty("classpath.resource.loader.class", ClasspathResourceLoader.class.getName());

        ve.init();

        Template t = ve.getTemplate("hellovelocity.vm");
        VelocityContext ctx = new VelocityContext();

        ctx.put("name", "velocity");
        ctx.put("date", (new Date()).toString());

        List temp = new ArrayList();
        temp.add("1");
        temp.add("2");
        ctx.put("list", temp);

        StringWriter sw = new StringWriter();

        t.merge(ctx, sw);
*/
    }
}
